package com.gxa.entity.commlife;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjl
 * @since 2022-10-12 11:39:47
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_coupon_management")
@ApiModel(value = "CouponManagement对象", description = "")
public class CouponManagement implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键 ")
    @TableId(value = "cm_id", type = IdType.AUTO)
    private Integer cmId;

    @ApiModelProperty(value = "优惠劵名称 ")
    @TableField("coupon_name")
    private String couponName;

    @ApiModelProperty(value = "面值 ")
    @TableField("face_value")
    private Integer faceValue;

    @ApiModelProperty(value = "有效时间 ")
    @TableField("valid_period")
    private Integer validPeriod;

    @ApiModelProperty(value = "起始时间 ")
    @TableField("period_start_of_validity")
    private Date periodStartOfValidity;

    @ApiModelProperty(value = "结束时间 ")
    @TableField("period_end_of_validity")
    private Date periodEndOfValidity;

    @ApiModelProperty(value = "发放数量 ")
    @TableField("issued_quantity")
    private Integer issuedQuantity;

    @ApiModelProperty(value = "剩余数量 ")
    @TableField("remaining_quantity")
    private Integer remainingQuantity;

    @ApiModelProperty(value = "状态(0:发放中,1:已结束) ")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "假删除")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;


}
